// number类型，但是要排斥掉NaN
const isNumber = val => typeof val === 'number' && val === val;
console.log(2===2)
console.log(isNumber(NaN));
console.log(NaN ==NaN);